package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/25
*/
@Data
@ApiModel("问诊收货地址信息，cms update之后生成新数据,todo 确认如何使用")
@Table(name = "tbl_booking_delivery_address")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingDeliveryAddress extends BaseEntity {

    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "last_name")
    private String lastName;

    private String phone;

    @Column(name = "postal_code")
    private String postalCode;

    private String address;

    @Column(name = "floor_number")
    private String floorNumber;

    private BigDecimal latitude;

    private BigDecimal longitude;

    /**
     * 保留 存1
     */
    @Column(name = "booking_type")
    @ApiModelProperty(" 保留 存1")
    private Integer bookingType;

    /**
     * delivery_time_slot的id
     */
    @Column(name = "dtl_id")
    @ApiModelProperty("delivery_time_slot的id ")
    private String dtlId;

    @Column(name = "mem_delivery_address_id")
    private String memDeliveryAddressId;

    private String state;

    @Column(name = "country_id")
    private String countryId;

    /**
     * 病人确定收货信息的时间，同创建时间,1.0存储的utc时间
     */
    @Column(name = "patient_selected_at")
    @ApiModelProperty("病人确定收货信息的时间，同创建时间,1.0存储的utc时间")
    private Date patientSelectedAt;

    /**
     * 病人选择的配送开始日期时间，存储utc时间
     */
    @Column(name = "patient_selected_delivery_date")
    @ApiModelProperty("病人选择的配送开始日期时间，存储utc时间")
    private Date patientSelectedDeliveryDate;

    @Column(name = "detail_address")
    private String detailAddress;

    /**
     * 通过https://maps.googleapis.com/maps/api/directions/json?origin=Singapore {起点邮编}&destination=Singapore {终点右边}&key={地图key}计算
     */
    @ApiModelProperty("通过https://maps.googleapis.com/maps/api/directions/json?origin=Singapore {起点邮编}&destination=Singapore {终点右边}&key={地图key}计算")
    private BigDecimal distance;

    /**
     * 默认为null,修改地址之后，老数据改为6，新地址数据赋值为1
     */
    @Column(name = "status")
    @ApiModelProperty("默认为null,修改地址之后，老数据改为6，新地址数据赋值为1 ")
    private Integer status;

    /**
     * 同病人联系电话的国家id
     */
    @Column(name = "phone_country_id")
    @ApiModelProperty("同病人联系电话的国家id ")
    private String phoneCountryId;
}